<?php
use app\models\Mall;
use yii\helpers\Url;
$web = Url::base();
$integral_unit = \app\models\Mall::getCurrentInstitutionIntegralUnit();
$institution_code = Mall::getCurrentInstitutionCode();
foreach ($items as $item) {
    ?>
    <a class="goods-item" href="goods-detail?goods_code=<?= $item['code'] ?>&institution_code=<?= $institution_code ?>">
        <img data-original="<?= $item['goods_image'] ? $item['goods_image'].'@300w': $web.'/images/mall-m/goods-list-nothing.jpg'?>"/>
        <label class="name crossborder">
            <?php
            if($item['is_crossborder']=='1'){
                ?>
                <span>跨境</span>
                <?php
            }
            ?>
            <?= $item['name'] ?></label>
        <label class="price"><?= $integral_unit ?>：<?= number_format($item['selling_integral']) ?></label>
    </a>
    <?php
}
?>